package com.ypz.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ypz.reggie.entity.Category;
import org.springframework.beans.factory.annotation.Autowired;

public interface CategoryService extends IService<Category> {
    /**
     * 删除
     * 并判断：要删除的分类是否关联了菜品或套餐，若关联则抛出异常，未关联则正常删除
     * @return
     */
    public boolean deleteByIds(Long ids);
}
